package com.team.mp.mapper.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team.mp.mapper.dto.ResidentSignDto;
import com.team.mp.mapper.dto.ServiceSearchDto;
import com.team.mp.mapper.dto.SignRecordDetailDto;
import com.team.mp.mapper.dto.SignRecordSearchDto;
import com.team.mp.mapper.entity.SignRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * 千锋郑州Java学科欢迎你
 * @program: Tproject
 * @description: 持久层 定义操作数据库的方法
 * @author: lx
 * @create: 2023-03-27 16:44:59
 */
public interface SignRecordDao extends BaseMapper<SignRecord> {
    Page<SignRecordSearchDto> selectInfo(@Param("page") Page<ServiceSearchDto> page, @Param("deptId") Integer deptId, @Param("teamId") Integer teamId,
                                         @Param("spId") Integer spId, @Param("status") Integer status,
                                         @Param("ctime") Date ctime);


    SignRecordDetailDto queryById(long id);

    List<ResidentSignDto> queryMoreInfo(@Param("rid") int rid);
}
